import Taro, {Component} from '@tarojs/taro'
import {WebView} from '@tarojs/components'
import { connect } from '@tarojs/redux'

@connect(({web}) => ({
  url: web.url
}))
export default class Web extends Component {

  config = {
    navigationBarTitleText: 'Web'
  }

  render () {
    const { url } = this.props
    console.log(url)
    return (
      <WebView src={url}/>
    )
  }
}
